import instance from "./request";
//获取列表
const getcompanyList = (data) => {
  return instance({
    url: "/enterprise/list",
    params: data,
  });
};
//设置状态
const setcompanyStatus = (data) => {
  return instance({
    url: "/enterprise/status",
    method: "post",
    data,
  });
};
//删除
const delcompany = (data) => {
  return instance({
    url: "/enterprise/remove",
    method: "post",
    data,
  });
};
//添加
const addcompany = (data) => {
  return instance({
    url: "/enterprise/add",
    method: "post",
    data,
  });
};
//编辑
const editcompany = (data) => {
  return instance({
    url: "/enterprise/edit",
    method: "post",
    data,
  });
};

export {
  getcompanyList,
  setcompanyStatus,
  delcompany,
  editcompany,
  addcompany,
};
